package org.groupg.project.processManager;

import java.io.*;
import java.util.*;
import java.util.concurrent.*;

public class ProcessManager {
    private Map<String, Process> runningProcesses = new ConcurrentHashMap<>();
    private ScheduledExecutorService monitorExecutor = Executors.newScheduledThreadPool(2);


    public Map<String, Process> getRunningProcesses() {
        return runningProcesses;
    }

    public void setRunningProcesses(Map<String, Process> runningProcesses) {
        this.runningProcesses = runningProcesses;
    }

    public ScheduledExecutorService getMonitorExecutor() {
        return monitorExecutor;
    }

    public void setMonitorExecutor(ScheduledExecutorService monitorExecutor) {
        this.monitorExecutor = monitorExecutor;
    }
}